package com.chuangshi.core.vote.member.controller.mobile.request;

import com.chuangshi.core.kit.Request;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * 会员移动端V1小程序授权登录的接收参数
 *
 * @author marcus
 * 2018/11/20
 */
@ApiModel(description = "会员移动端V1小程序授权登录的接收参数")
public class MemberMobileV1MiniAuthLoginRequest extends Request {

	@ApiModelProperty(value = "小程序临时登录凭证code", required = true, position = 20)
	@NotNull(message = "小程序临时登录凭证code不能为空")
	@Length(max = 2000, message = "小程序临时登录凭证code长度超出限制")
	private String jsCode;

	@ApiModelProperty(value = "小程序的加密数据", required = true, position = 30)
	@NotNull(message = "小程序的加密数据不能为空")
	@Length(max = 2000, message = "小程序的加密数据长度超出限制")
	private String encryptedData;

	@ApiModelProperty(value = "小程序的解密初始向量", required = true, position = 40)
	@NotNull(message = "小程序的解密初始向量不能为空")
	@Length(max = 2000, message = "小程序的解密初始向量长度超出限制")
	private String iv;

	public String getJsCode() {
		return jsCode;
	}

	public void setJsCode(String jsCode) {
		this.jsCode = jsCode;
	}

	public String getEncryptedData() {
		return encryptedData;
	}

	public void setEncryptedData(String encryptedData) {
		this.encryptedData = encryptedData;
	}

	public String getIv() {
		return iv;
	}

	public void setIv(String iv) {
		this.iv = iv;
	}

}
